#include "e2d/imgui/physics/Editor.h"

bool e2d::physics::Editor::TryTreeEditEntity(e2d::Entity* entity)
{
    bool flag{ 0 };
    flag |= TryTreeEdit<FixedJoint>(entity);
    flag |= TryTreeEdit<RevoluteJoint>(entity);
    flag |= TryTreeEdit<RigidbodyDynamic>(entity);
    flag |= TryTreeEdit<RigidbodyStatic>(entity);

    return flag;
}

